package com.gct.persistence;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.gct.domain.Theme;

public interface ThemeMapper {
    List<Theme> getThemes();
    List<Theme> getHotThemes();
    Theme getArtsInTheme(@Param("theme") Theme theme);
    Theme getArtsInThemeWithDuration(@Param("theme") Theme theme, @Param("seconds") int seconds);
    void saveTheme(@Param("theme") Theme theme);
    void updateTheme(@Param("theme") Theme theme);
    void deleteTheme(@Param("theme") Theme theme);
    void themeArt(@Param("artId") long artId, @Param("themeIds") List<Integer> themeIds);
    List<Theme> getThemesByIds(@Param("artId") long artId, @Param("themeIds") List<Integer> themeIds);
}
